#ifndef DISCOUNTMANAGEMENT_H
#define DISCOUNTMANAGEMENT_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QMessageBox>
#include <QDebug>
#include <QSqlError>
#include <QInputDialog>
#include <QListWidgetItem>
#include <QListWidget>
#include <QKeyEvent>

namespace Ui {
class discountManagement;
}

class discountManagement : public QWidget
{
    Q_OBJECT

public:
    explicit discountManagement(QWidget *parent = nullptr);
    ~discountManagement();

private slots:
    void on_setBtn_clicked();

    void on_discountList_itemClicked(QListWidgetItem *item);

private:
    Ui::discountManagement *ui;
    QSqlDatabase db;
    void initList();
};

#endif // DISCOUNTMANAGEMENT_H
